package pingji.service.upload.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import pingji.dao.upload.UploadDao;
import pingji.service.upload.UploadService;

import java.io.IOException;

@Service
public class UploadServiceImpl implements UploadService {
    @Autowired
    UploadDao dao;
    @Override
    public void upload(MultipartFile file, String desc ,Integer id,Integer pingjierId) throws IOException {
        dao.upload(file,desc,id,pingjierId);
    }

    @Override
    public void delete(Integer id, Integer userId) {
        dao.delete(id,userId);
    }

    @Override
    public void shensu(Integer id, Integer userId) {
        dao.shensu(id,userId);
    }
}
